<div id="actionbar" class="fn-clear">
    <div class="fn-left">
        <button class="button button-blue bar" url="{:url('vip.user/winUser',['vip_id' => $vip_id])}" msg="您确认要添加当前用户为会员会员"><i class="iconfont icon-lianjie"></i>确认【{$vip.name}】会员用户</button>
    </div>
    <div class="fn-right">
    <form id="form" action="{:url('vip.user/winuser')}" method="get">
        <input type="hidden" name="vip_id" value="{$vip_id}" />
        <input placeholder="请输入绑定手机号或微信昵称" class="input w200" type="text" name="keyword" value="{$keyword}" />
        <input type="submit" value="搜索" class="button button-blank" />
    </form>
    </div>
</div>
<table class="table">
    <thead>
        <tr>
            <th class="w60 fn-tac">#</th>
            <th class="w80 fn-tac">昵称</th>
            <th></th>
            <th class="w100">手机号</th>
            <th class="w140">登录IP</th>
            <th class="w140">登录时间</th>
            <th class="w140">创建时间</th>
            <th class="w70 fn-tac">状态</th>
        </tr>
    </thead>
    <tbody>
        {foreach $list as $vo}
        <tr>
            <td class="fn-tac"><input name="ids[]" type="checkbox" value="{$vo.id}"></td>
            <td><img src="{$vo.face}" class="w60"></td>
            <td>{$vo.nickname}</td>
            <td>{$vo.phone_uid}</td>
            <td>{$vo.login_ip}</td>
            <td>{$vo->login_time|date='Y-m-d H:i'}</td>
            <td>{$vo->create_time|date='Y-m-d H:i'}</td>
            <td class="fn-tac li">{if $vo.is_lock}<span class="badge bg-red">锁定</span>{else}<span class="badge">正常</span>{/if}</td>
        </tr>
        {/foreach}
    </tbody>
</table>
{$list|raw}
<script type="text/javascript">
    Do('base','layer',function(){
        $(".bar").click(function() {
            var url = $(this).attr('url');
            var msg = $(this).attr('msg');
            tools_submit({action:url,msg:msg})
        })
    })
</script>